// 全局路由管理
import Vue from 'vue'
import VueRouter from 'vue-router'
import Charts from '../views/charts/charts.vue'
import Export from '../views/export/export.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/charts',
  },
  {
    path: '/charts',
    name: 'Charts',
    component: Charts,
  },
  {
    path: '/export',
    name: 'Export',
    component: Export,
  },
]

const router = new VueRouter({
  routes,
})

export default router
